@mixin font($name) {
    @font-face {
        font-family: $name;
        src: url('./font/#{$name}.ttf') format('truetype');
    }
}

@include font('SR');

@include font('tttgbnumber');

@include font('YS');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'SR', sans-serif;
    transform: scale(1.4);
    transform-origin: 0 0;
    font-size: 18px;
    width: 600px;
}

.container {
    width: 600px;
    padding: 20px 15px 10px 15px;
    background-size: contain;
}

.head-box {
    border-radius: 15px;
    padding: 10px 20px;
    position: relative;
    color: #fff;
    margin-top: 30px;
}

.head-box .title {
    font-family: "tttgbnumber", "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif;
    font-size: 36px;
    text-shadow: 0 0 1px #000, 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.head-box .title .label {
    display: inline-block;
    margin-left: 10px;
}

.head-box .genshin_logo {
    position: absolute;
    top: 1px;
    right: 15px;
    width: 97px;
}

.head-box .label {
    font-size: 16px;
    text-shadow: 0 0 1px #000, 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.head-box .label span {
    color: #d3bc8e;
    padding: 0 2px;
}

.copyright {
    font-size: 14px;
    text-align: center;
    color: #fff;
    position: relative;
    padding-left: 10px;
    text-shadow: 1px 1px 1px #000;
    margin: 10px 0;
}

.copyright .version {
    color: #d3bc8e;
    display: inline-block;
    padding: 0 3px;
}

// 命座颜色
$background-list: (
    #606060,
    #ADFF2F,
    #FFB6C1,
    #1aa1d7,
    #F08080,
    #7B68EE,
    #ff5222
);

@for $i from 0 to length($list: $background-list) {
    .const-rank-#{$i} {
        background: nth($background-list, $i + 1);
    }
}